package com.zhy.skinchangenow.image

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.water.skin.SkinManager

/**
 *  Created by zxn on 2021/9/6.
 */
class ImageFragmentActivity : AppCompatActivity() {

    companion object {
        @JvmStatic
        fun jumpTo(context: Context) {
            context.startActivity(Intent(context, ImageFragmentActivity::class.java))
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        //SkinManager.getInstance().register(this)
        supportFragmentManager.beginTransaction()
            .add(android.R.id.content, ImageFragment.newInstance()).commitAllowingStateLoss()
    }

    override fun onDestroy() {
        super.onDestroy()
        //SkinManager.getInstance().unregister(this)
    }
}